﻿using WeDonekRpc.Helper.Validate;

namespace Basic.FlowRemoteModel.FlowApp.Model
{
    public class FlowAppQuery
    {
        [LenValidate("public.query.key.len", 0, 50)]
        public string QueryKey
        {
            get;
            set;
        }
        [LenValidate("flow.app.classify.len", 0, 10)]
        public string AppClassify { get; set; }

        [EnumValidate("flow.app.type.error", typeof(FlowAppType))]
        public FlowAppType? AppType { get; set; }

        [EnumValidate("flow.app.status.error", typeof(FlowAppStatus))]
        public FlowAppStatus[] Status
        {
            get;
            set;
        }
    }
}
